import request from '@/utils/request'
import {projectApiUrls} from '../config'
import {projectApiUrl} from '../config'
/**
 * 项目停工列表
 * @param parameter
 */
export function getstopWorkList(parameter){
  return request({
    url: projectApiUrls+'/project/shutdown/management/query-list/list',
    method: 'post',
    data: parameter
  })
}


/**
 * 项目停工统计
 * @param
 */
export function getstopWorkTotal(data){
  return request({
    url: projectApiUrls+'/project/shutdown/management/query-list-total/list',
    method: 'post',
    data
  })
}

/**
 * 获取工程码表共通方法
 * @param
 */
export function getProjectCommon(data){
  return request({
    url: projectApiUrl+'/plan-label',
    method: 'get',
    params:data
  })
}

/**
 * 项目停工详情
 * @param
 */
export function getProjectStopWorkDetails(data){
  return request({
    url: projectApiUrl+'/project/shutdown/management/detail',
    method: 'get',
    params:data
  })
}


/**
 * 新增项目停工
 * @param data
 */
export function addstopWork(data){
  return request({
    url: projectApiUrls+'/project/shutdown/management/add-shutdownInfo',
    method: 'post',
    data: data
  })
}


/**
 * 编辑项目停工评分
 * @param data
 */
export function editstopWork(data){
  return request({
    url: projectApiUrls+'/project/shutdown/management/update-shutdownInfo',
    method: 'post',
    data: data
  })
}

/**
 * 重新开工申请
 * @param data
 */
export function workApplication(data){
  return request({
    url: projectApiUrls+'/project/shutdown/management/reload-startWorkInfo',
    method: 'post',
    data: data
  })
}


